package com.zb.uniman.controller;

import com.zb.uniman.common.ResultMap;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * Author:B
 * Description:  127.0.0.1:8080/common/hi
 */
@CrossOrigin
@RestController
@RequestMapping("/common")
@Slf4j
public class commoncontroller {

    @GetMapping("/hi")
    public ResultMap sayhi(){
        ResultMap<Object> resultMap = new ResultMap<>();
        resultMap.setCode(200);
        resultMap.setMsg("返回成功");
        return resultMap;
    }
}
